var e = require;
var t = module;
var o = exports;
var n = o;
Object.defineProperty(n, "__esModule", {value: !0}), (n.BevNodeFactory = void 0);
var i = e("BevNodeLoop"),
    a = e("BevNodeNonePrioritySelector"),
    r = e("BevNodeParallel"),
    s = e("BevNodePrioritySelector"),
    c = e("BevNodeSequence"),
    l = (function () {
        function e() {}
        return (
            (e.oCreateParallelNode = function (e, t, o) {
                var n = new r.BevNodeParallel(e);
                return n.SetFinishCondition(t), this.oCreateNodeCommon(n, e, o), n;
            }),
            (e.oCreatePrioritySelectorNode = function (e, t) {
                var o = new s.BevNodePrioritySelector(e);
                return this.oCreateNodeCommon(o, e, t), o;
            }),
            (e.oCreateNonePrioritySelectorNode = function (e, t) {
                var o = new a.BevNodeNonePrioritySelector(e);
                return this.oCreateNodeCommon(o, e, t), o;
            }),
            (e.oCreateSequenceNode = function (e, t) {
                var o = new c.BevNodeSequence(e);
                return this.oCreateNodeCommon(o, e, t), o;
            }),
            (e.oCreateLoopNode = function (e, t, o) {
                var n = new i.BevNodeLoop(e, null, o);
                return this.oCreateNodeCommon(n, e, t), n;
            }),
            (e.oCreateTeminalNode = function (e, t, o) {
                return this.oCreateNodeCommon(e, t, o), e;
            }),
            (e.oCreateNodeCommon = function (e, t, o) {
                t && t.AddChildNode(e), e.SetDebugName(o);
            }),
            e
        );
    })();
n.BevNodeFactory = l;
